import { RequestHandler } from 'express';
import { req_cur_user_delete_uni_float_info } from '../Classes/cla_req_cur_user_delete_uni_float_info';
import { res_send_delete_unifloat } from '../Classes/cla_res_send_delete_unifloat';
import { sign_out_cur_user_uni_float_identity_type_active } from '../Func/sign_out_cur_user_uni_float_identity_type_active';
import { log_info_cur_user_delete_uni_float } from '../Func/Log_info';

export const delete_cur_user_uni_float: RequestHandler = async (req, res) => {
  let req_cur_delete_info = new req_cur_user_delete_uni_float_info(req);

  let delete_id_arr = await sign_out_cur_user_uni_float_identity_type_active(
    req_cur_delete_info
  );

  req_cur_delete_info.delete_uni_float_arr = delete_id_arr;

  log_info_cur_user_delete_uni_float(req_cur_delete_info);

  let res_send = new res_send_delete_unifloat(req_cur_delete_info);

  res.send(res_send);
};
